package org.huzhp.gateway.dynamic.route;

import org.huzhp.gateway.dynamic.ConsoleProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Description: 配置类
 * @Author: huzp
 * @CreateDate: 2020/3/17 11:54
 * @Version: 1.0
 */
@Configuration
public class ConsoleRouteConfig {


    @Bean
    public ConsoleRouteDefinitionLocator consoleRouteDefinitionLocator(ConsoleProperties consoleProperties, RestTemplate restTemplate) {
        return new ConsoleRouteDefinitionLocator(consoleProperties, restTemplate);
    }


}
